package com.bbs.domain;

import java.util.List;

public class Page<T> {
    private int allPage;
    private int curPage;
    // T 表示泛型
    private List<T> list;
    // 存放分页信息当中的列表记录。T表示的泛型

    public Page() {
    }

    public Page(int allPage, int curPage) {
        this.allPage = allPage;
        this.curPage = curPage;
    }

    public int getAllPage() {
        return allPage;
    }

    public void setAllPage(int allPage) {
        this.allPage = allPage;
    }

    public int getCurPage() {
        return curPage;
    }

    public void setCurPage(int curPage) {
        this.curPage = curPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}

